/*******************************************************************************************
This file is part of iToday.

iToday is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

iToday is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with iToday.  If not, see <http://www.gnu.org/licenses/>.
* ------------------------------------------------------------------------------
*    FileUtility.h - Utility for File I/O
* ------------------------------------------------------------------------------
*    Revision History
*    Date                  Author         Activity ID               Activity Headline
*    2009-10-13            CubeWang				none						initial
*******************************************************************************************/

BOOL RegReadKey(HKEY hRootKey/*[in]*/,
                LPCWSTR lpSubKeyName/*[in]*/,
                LPCWSTR lpSubKeyValueName/*[in]*/,
                LPBYTE lpSubKeyValueBuf/*[in,out]*/,
                LPDWORD lpBufSize/*[in,out]*/);

void GetCurrentDirFilename(TCHAR * szFilename, const TCHAR * filename,
                           const TCHAR * extension = NULL );
void WriteContactDataItemtoFile(ContactDataItem * data ,HANDLE hCache);

HFONT BuildFont(int iFontSize, BOOL bBold, BOOL bItalic) ;
